package WaitNotify;

public class Main {
    public static void main(String[] args) {
        Message msg = new Message("锁");
        Waiter waiter = new Waiter(msg);
        new Thread(waiter,"waiter").start();

        Waiter waiter1 = new Waiter(msg);
        new Thread(waiter1,"waiter1").start();

        Waiter waiter2 = new Waiter(msg);
        new Thread(waiter2,"waiter2").start();

        Notifier notifier = new Notifier(msg);
        new Thread(notifier).start();
    }
}
